//
//  ZMYRootViewController.m
//  奇阅
//
//  Created by 奇阅科技 on 14-10-15.
//  Copyright (c) 2014年 奇阅科技. All rights reserved.
//

#import "ZMYRootViewController.h"
#import "ZMYBookRackNavigationController.h"
@interface ZMYRootViewController ()

@end

@implementation ZMYRootViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}
-(void)awakeFromNib{
    [super awakeFromNib];
    ZMYBookRackNavigationController *nav = [self.storyboard instantiateViewControllerWithIdentifier:@"ZMYBookRackNavigationController"];
    nav.rootViewC = self;
    self.rootViewController = nav;
    self.leftViewShowWidth = self.view.frame.size.width-54;
    self.leftViewController =[self.storyboard instantiateViewControllerWithIdentifier:@"ZMYBookRackSideViewController"];
    UINavigationController *rightNav = [[UINavigationController alloc]initWithRootViewController: [[UIStoryboard storyboardWithName:@"BookShop" bundle:Nil]instantiateViewControllerWithIdentifier:@"BookShopingRootViewController"]];
    self.rightViewController = rightNav;
    self.rightViewShowWidth = self.view.frame.size.width;
//    [self.navigationController pushViewController:shoppingView animated:YES];
//    [self setRootViewMoveBlock:^(UIView *rootView, CGRect orginFrame, CGFloat xoffset) {
//        //使用简单的平移动画
//        rootView.frame=CGRectMake(xoffset, orginFrame.origin.y, orginFrame.size.width, orginFrame.size.height);
//    }];
}
- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
